/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-05-24
 * Time: 18:59
 */
public class Main {
    public static void main2(String[] args) {
        //方法的重载
        Maths maths=new Maths(1,2);
        Maths maths1=new Maths(1,3,2);

        System.out.println(maths.max(maths.a, maths.b));
        System.out.println(maths1.max(maths1.a, maths1.b, maths1.c));
    }
    public static void main1(String[] args) {
        //类的声明与使用
        Rectangle rectangle=new Rectangle();
        rectangle.width=10;
        rectangle.height=20;
        System.out.println(rectangle.getArea());

    }
}